package com.medvalley.tcm.dao;

import com.medvalley.tcm.domain.AdminUser;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;

/**
 * @author linsong
 * @date 2019/5/8 11:04
 **/

public interface AdminUserDao extends CrudRepository<AdminUser, Integer>, JpaSpecificationExecutor<AdminUser> {

    AdminUser findOneByPhoneAndPassword(String phone, String password);

    AdminUser findOneByPhone(String phone);
}
